package com.example.basic_components.Card

import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Card
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp


@Composable
fun CardDemo() {
    Card(
        modifier = Modifier
            .fillMaxWidth()
            .padding(15.dp)
            .clickable { },
        elevation = 10.dp,
        backgroundColor = Color.Red
    ) {
        Column(
            modifier = Modifier.padding(15.dp)
        ) {
            Text(text = "Welcome to Jetpack Compose!")
            Text(text = "Now ,You are looking it.")
        }
    }
}